package com.zlx.xbhy;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.annotation.PropertySources;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication
//扫描mapper包
@MapperScan(basePackages = "com.zlx.xbhy.mapper")
@org.mybatis.spring.annotation.MapperScan(basePackages = "com.zlx.xbhy.mapper")
//@ServletComponentScan("com.zlx.xbhy.listener")
@PropertySource("config.properties")
public class XbhyApplication {

    public static void main(String[] args) {
        SpringApplication.run(XbhyApplication.class, args);
    }

    @Bean
    public ServerEndpointExporter serverEndpointExporter(){
        return new ServerEndpointExporter();
    }
}
